/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
 * Description: mc2 dfx
 * Author: huawei
 * Create: 2024-05-24
 */

#include "dfx_extend_info.h"
namespace dfx {

void DfxExtendInfoHelper::ResetTryRestartTimes(DfxExtendInfo &dfxExtendInfo)
{
    dfxExtendInfo.kfcRestartConfig.tryRestartTimes = 0U;
}
bool DfxExtendInfoHelper::TryRestartTooManyTimes(const DfxExtendInfo &dfxExtendInfo)
{
    return dfxExtendInfo.kfcRestartConfig.tryRestartTimes > dfxExtendInfo.kfcRestartConfig.maxRestartTimes;
}
void DfxExtendInfoHelper::TryRestartOnceMore(DfxExtendInfo &dfxExtendInfo)
{
    dfxExtendInfo.kfcRestartConfig.tryRestartTimes++;
}
}